﻿using Zhongjiu.IRepository.Blog;
using Zhongjiu.IServices;
using Zhongjiu.Model.Blog;
using Zhongjiu.Model.Models;

namespace Zhongjiu.Services
{
  public partial class AdvertisementService : BaseServices<Advertisement, IAdvertisementRepository>, IAdvertisementService
    {
        IBlogArticleServices _blogArticleService;
        public AdvertisementService(IBlogArticleServices blogArticleService)
        {
            _blogArticleService = blogArticleService;
        }

        public void ReturnExp()
        {

            int a = 1;
            int b = 0;

            int c = a / b;
            var result=_blogArticleService.GetBlogDetails(1);
        }

        //public IAdvertisementRepository dal = new AdvertisementRepository();
        //public int Sum(int i, int j)
        //{
        //    return base.Sum(i, j);

        //}


        //public int Add(Advertisement model)
        //{
        //    return base.Add(model);
        //}

        //public bool Delete(Advertisement model)
        //{
        //    return base.Delete(model);
        //}

        //public List<Advertisement> Query(Expression<Func<Advertisement, bool>> whereExpression)
        //{
        //    return base.Query(whereExpression);

        //}

        //public bool Update(Advertisement model)
        //{
        //    return base.Update(model);
        //}

    }
}
